#!/usr/bin/python

import socket
import time

sockin = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

def send(str):
    sockin.sendto(str, (('127.0.0.1', 8080)))

def recv():
    msg, (addr,port) = sockin.recvform(100)
    return msg


import random

if __name__ == "__main__":

    send("clear")
    
    for i in range(300):
        r = int(random.random()*10)
        send(str(r))
        time.sleep(0.01)

